// vite.config.js
import path from "path";
import { defineConfig } from "file:///C:/Users/Admin/Desktop/test-hot/node_modules/.pnpm/vite@5.1.3_sass@1.71.0_terser@5.27.0/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/Admin/Desktop/test-hot/node_modules/.pnpm/@vitejs+plugin-vue@5.0.4_vite@5.1.3_vue@3.4.19/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import legacy from "file:///C:/Users/Admin/Desktop/test-hot/node_modules/.pnpm/@vitejs+plugin-legacy@5.2.0_terser@5.27.0_vite@5.1.3/node_modules/@vitejs/plugin-legacy/dist/index.mjs";
import { createSvgIconsPlugin } from "file:///C:/Users/Admin/Desktop/test-hot/node_modules/.pnpm/vite-plugin-svg-icons@2.0.1_vite@5.1.3/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import autoprefixer from "file:///C:/Users/Admin/Desktop/test-hot/node_modules/.pnpm/autoprefixer@10.4.18_postcss@8.4.35/node_modules/autoprefixer/lib/autoprefixer.js";
var __vite_injected_original_dirname = "C:\\Users\\Admin\\Desktop\\test-hot";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    legacy({
      targets: ["defaults", "not IE 11", "chrome 52"]
    }),
    createSvgIconsPlugin({
      iconDirs: [path.resolve(process.cwd(), "src/assets/icons")],
      symbolId: "icon-[dir]-[name]",
      customDomId: "__svg__icons__dom__"
    })
  ],
  resolve: {
    alias: {
      "@": path.resolve(__vite_injected_original_dirname, "./src")
    }
  },
  base: "./",
  css: {
    postcss: {
      plugins: [autoprefixer({
        overrideBrowserslist: [
          "Android 4.1",
          "iOS 7.1",
          "Chrome > 31",
          "ff > 31",
          "ie >= 8",
          "> 1%"
        ]
      })]
    }
  },
  build: {
    chunkSizeWarningLimit: 3e3,
    outDir: "dist",
    assetsDir: "assets",
    //指定静态资源存放路径
    sourcemap: false,
    //是否构建source map 文件
    emptyOutDir: true,
    // 是否清空目录
    // 去除console 和 debugger
    terserOptions: {
      compress: {
        drop_console: true,
        drop_debugger: true
      }
    },
    rollupOptions: {
      output: {
        manualChunks(id) {
          if (id.includes("node_modules")) {
            return "vendor";
          }
        },
        entryFileNames: "js/[name].[hash].js",
        chunkFileNames: "js/[name].[hash].js",
        assetFileNames: ({ name }) => {
          if (/\.(gif|jpe?g|png|svg)$/.test(name ?? "")) {
            return "img/[name].[hash][extname]";
          }
          if (/\.css$/.test(name ?? "")) {
            return "css/[name].[hash][extname]";
          }
          if (/\.(woff2?|eot|ttf|otf)$/.test(name ?? "")) {
            return "font/[name].[hash][extname]";
          }
          return "other/[name].[hash][extname]";
        }
      }
    }
  },
  server: {
    host: "0.0.0.0"
    //  proxy: {
    //  '/api': {
    //     target: 'http://192.168.0.210:80',
    //     changeOrigin: true,
    //     rewrite: (path) => path.replace(/^\/api/, '/api'),
    //    },
    //  },
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxBZG1pblxcXFxEZXNrdG9wXFxcXHRlc3QtaG90XCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxBZG1pblxcXFxEZXNrdG9wXFxcXHRlc3QtaG90XFxcXHZpdGUuY29uZmlnLmpzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9DOi9Vc2Vycy9BZG1pbi9EZXNrdG9wL3Rlc3QtaG90L3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHBhdGggZnJvbSAncGF0aCdcclxuaW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHZ1Z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